<?php foreach($rs1 as $r)?>
<p>&nbsp;</p>
<span id="wiatLogin"></span>
<div align="center">
  <h1>ข้อมูลคุณภาพ MasterReel</h1>
</div>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="62%" valign="top"><strong>Data Detail<br />
      <br />
      </strong>
      <table width="90%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#94c0d2">
        <tr>
        <td width="12%" height="32" bgcolor="#DAECF4">&nbsp;ประเภท</td>
        <td width="17%" align="center"><?php echo $r['type_product'];?></td>
        <td width="18%" bgcolor="#DAECF4">&nbsp;Reel No.</td>
        <td width="12%" align="center"><?php echo $r['lot_no'];?></td>
        <td width="14%" bgcolor="#DAECF4">&nbsp;Date</td>
        <td width="27%" align="center"><?php echo $r['modify_date']; ?></td>
      </tr>
      <tr>
        <td height="30" bgcolor="#DAECF4">&nbsp;Type</td>
        <td align="center"><?php echo $r['type_of']; ?></td>
        <td bgcolor="#DAECF4">&nbsp;Grade</td>
        <td align="center"><?php echo $r['grade']; ?></td>
        <td bgcolor="#DAECF4">&nbsp;Shift</td>
        <td align="center"><?php echo $r['shift']; ?></td>
      </tr>
      <tr>
        <td height="30" bgcolor="#DAECF4">&nbsp;Gram</td>
        <td align="center"><?php echo $r['gram']; ?></td>
        <td bgcolor="#DAECF4">&nbsp;</td>
        <td align="center">&nbsp;</td>
        <td bgcolor="#DAECF4">&nbsp;</td>
        <td align="center">&nbsp;</td>
      </tr>
      <tr>
        <td height="30" colspan="6" align="center"><?php if($r["status"] == 1)
    { echo "<h2>Status :: <font color=green>Active</font></h2>";} 
    else 
    {
    	echo "<h2>Status :: <font color=red>No Active</font></h2>";
      
     } 
    ?></td>
      </tr>
  </table></td>
    <td width="38%" valign="top">&nbsp;</td>
  </tr>
</table>
<p>&nbsp;</p>
<table width="99%" align="center" class="font">
  <tr>
    <td><table id="grid">
        <thead>
          <tr>
            <th data-field="Properties1">Properties Item</th>
            <th data-field="Value11">Value</th>
            <th data-field="Value12">Value</th>
            <th data-field="Unit1">Unit</th>
            <th data-field="Properties2">Properties Item</th>
            <th data-field="Value21">Value</th>
            <th data-field="Value22">Value</th>
            <th data-field="Unit2">Unit</th>
            <th data-field="Properties3">Properties Item</th>
            <th data-field="Value31">Value</th>
            <th data-field="Value32">Value</th>
            <th data-field="Unit3">Unit</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>น้ำหนักม้วน</td>
            <td>
			  <?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR10')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?>        
            </td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR10')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>Tons ตัน</td>
            <td>Water Absorp TS</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR32')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR32')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(g/m<sup>2</sup>)</td>
            <td>Internal Bonding</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR53')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR53')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(J/m<sup>2</sup>)</td>
          </tr>
          <tr>
            <td>Basis Weight</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR11')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR11')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(g/m<sup>2</sup>)</td>
            <td>Water Absorp BS</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR33')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR33')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(g/m<sup>2</sup>)</td>
            <td>Friction static</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR54')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR54')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td></td>
          </tr>
          <tr>
            <td>Thickness</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR12')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR12')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(mm)</td>
            <td>PPF Value</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR34')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR34')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(PPF)</td>
            <td>Friction kinetic</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR55')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR55')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td></td>
          </tr>
          <tr>
            <td>Density</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR13')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR13')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(g/cm<sup>3</sup>)</td>
            <td>Filler</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR35')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR35')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(%)</td>
            <td>Raggesness</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR56')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR56')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>Plattern No.</td>
          </tr>
          <tr>
            <td>Bulk</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR14')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR14')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(cm<sup>3</sup>/g)</td>
            <td>Moisture</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR36')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR36')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(%)</td>
            <td>Black density</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR57')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR57')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>Plattern No.</td>
          </tr>
          <tr>
            <td>Roughness (TS)</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR15')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR15')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>ml/min</td>
            <td>CIE Whiteness</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR37')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR37')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(%)</td>
            <td>Gainniness</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR58')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR58')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>Plattern No.</td>
          </tr>
          <tr>
            <td>Roughness (BS)</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR16')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR16')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>ml/min</td>
            <td>ISO Brightness</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR38')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR38')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(%)</td>
            <td>Flat Curl Before</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR59')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR59')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>mm</td>
          </tr>
          <tr>
            <td>Porosity</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR17')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR17')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(s./100)</td>
            <td>Opacity</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR39')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR39')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(m<sup>2</sup>/kg)</td>
            <td>Flat Curl After F</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR60')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR60')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>mm</td>
          </tr>
          <tr>
            <td>Air Permeability</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR18')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR18')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>ml/min</td>
            <td>Scatter Co.</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR40')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR40')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(m<sup>2</sup>/kg)</td>
            <td>Flat Curl After W</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR61')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR61')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>mm</td>
          </tr>
          <tr>
            <td>Tensile Strenght MD</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR19')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR19')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(kN/m)</td>
            <td>Absorb Co.</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR41')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR41')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>&nbsp;</td>
            <td>Flat Curl After F-W</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR62')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR62')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>Double mm</td>
          </tr>
          <tr>
            <td>Tensile Strenght CD</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR20')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR20')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(kN/m)</td>
            <td>L*</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR42')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR42')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td></td>
            <td>Flat Curl After W-F</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR63')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR63')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>Double mm</td>
          </tr>
          <tr>
            <td>Tensile Stretch MD</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR21')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR21')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(%)</td>
            <td>a*</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR43')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR43')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td></td>
            <td>Hanging Curl Before </td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR64')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR64')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>mm</td>
          </tr>
          <tr>
            <td>Tensile Stretch CD</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR22')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR22')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(%)</td>
            <td>b*</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR44')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR44')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td></td>
            <td>Hanging Curl After F</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR65')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR65')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>mm</td>
          </tr>
          <tr>
            <td>Tensile Index</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR23')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR23')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>Nm/g</td>
            <td>Dirt</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR45')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR45')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(ppm)</td>
            <td>Hanging Curl After W</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR66')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR66')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>mm</td>
          </tr>
          <tr>
            <td>Tear MD</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR24')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR24')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(mN)</td>
            <td>Pen Writing Top</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR46')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR46')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>Plattern No.</td>
            <td>Hanging Curl After F-W</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR67')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR67')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>Double mm</td>
          </tr>
          <tr>
            <td>Tear CD</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR25')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR25')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(mN)</td>
            <td>Pen Writing Bottom</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR47')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR47')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>Plattern No.</td>
            <td>Hanging Curl After W-F</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR68')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR68')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>Double mm</td>
          </tr>
          <tr>
            <td>Bending Stiffness MD</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR26')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR26')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(mN)</td>
            <td>Stockigt Top</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR48')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR48')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>Second.</td>
            <td>2 Sigma Basis Weight</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR69')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR69')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td></td>
          </tr>
          <tr>
            <td>Bending Stiffness CD</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR27')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR27')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(mN)</td>
            <td>Stockigt Bottom</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR49')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR49')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>Second.</td>
            <td>2 Sigma Thicknes</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR70')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR70')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td></td>
          </tr>
          <tr>
            <td>Bursting Strength</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR28')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR28')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(kPa)</td>
            <td>TSAmd</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR50')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR50')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td></td>
            <td>2 Sigma DE</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR71')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR71')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td></td>
          </tr>
          <tr>
            <td>Surface Strength TS</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR29')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR29')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(No.A)</td>
            <td>TSImd</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR51')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR51')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td></td>
            <td>2 Sigma Filler</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR72')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR72')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td></td>
          </tr>
          <tr>
            <td>Surface Strength BS</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR30')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR30')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(No.A)</td>
            <td>TSIcd</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR52')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR52')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td></td>
            <td>2 Sigma Moisture</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR73')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR73')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td></td>
          </tr>
          <tr>
            <td>Suf. Electric</td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR31')
				  {
					echo $r['value_start'];
				  }
			  }
			  ?></td>
            <td><?php 
			  foreach($rs2 as $r)
			  {
				  if($r['data_name']=='masterMR31')
				  {
					echo $r['value_end'];
				  }
			  }
			  ?></td>
            <td>(Ohm)</td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
          </tr>
        </tbody>
      </table></td>
  </tr>
</table>
 <style scoped="scoped">
   .info {
                    display: block;
                    line-height: 22px;
                    padding: 0 5px 5px 0;
					color: #36558e;
                }
  </style>
<!--scrip list select--> 
<script>
                $(document).ready(function() {
                    var viewModel = {
                        chosenTicket: ko.observable(),
                        resetTicket: function() { this.chosenTicket(null) },
                    };
                    $("#ticket1").kendoDropDownList().trigger("change");
                    $("#ticket2").kendoDropDownList().trigger("change");
                    $("#ticket3").kendoDropDownList().trigger("change");
                    $("#ticket4").kendoDropDownList().trigger("change");
                    $("#ticket5").kendoDropDownList().trigger("change");
                    var today = new Date(),
                        birthdays = [
                           +new Date(today.getFullYear(), today.getMonth(), 11),
                           +new Date(today.getFullYear(), today.getMonth() + 1, 6),
                           +new Date(today.getFullYear(), today.getMonth() + 1, 27),
                           +new Date(today.getFullYear(), today.getMonth() - 1, 3),
                           +new Date(today.getFullYear(), today.getMonth() - 2, 22)
                        ];
                    $("#grid").kendoGrid({
						columns: [
						{ field: "Properties1", width: "40px" },
						{ field: "Value11", width: "15px" },
						{ field: "Value12",  width: "15px" },
						{ field: "Unit1", width: "20px" },
						{ field: "Properties2", width: "40px" },
						{ field: "Value21", width: "15px" },
						{ field: "Value22", width: "15px" },
						{ field: "Unit2", width: "20px" },
						{ field: "Properties1", width: "40px" },
						{ field: "Value31", width: "15px" },
						{ field: "Value32", width: "15px" },
						{ field: "Unit3", width: "20px" }


						],
                        //height: 1000,
						//pageable: true,
						dataSource: {
						//pageSize: 12
						} 
                    });
                });
            </script> 